package com.inctech.clz2.test1;

public class SecondQuestion {
	public int[] wordAndCount(String m){
		int wordNum = 0;
		int countNum = 0;
		char[] charM = m.toCharArray();
		for (int i = 0; i < charM.length; i++) {
			if(Character.isDigit(charM[i])){
				countNum++;
			}else{
				wordNum++;
			}
		}
		int[] result = {countNum,wordNum};
		return result;
	}
}
